﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Combat/Combat.master" AutoEventWireup="true" CodeFile="BaseItemList.aspx.cs" Inherits="Combat_BaseItemList" StylesheetTheme="Content" %>

<%@ Register src="../UserContral/ListPageContral.ascx" tagname="ListPageContral" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
         <ul class="topmenu">
         <li>技能分类：</li>
         <li><asp:DropDownList ID="ddlItemType" Width="300" runat="server">
    </asp:DropDownList></li>
    <li>
        <asp:LinkButton ID="lnbtnQuery" runat="server" onclick="lnbtnQuery_Click">查询</asp:LinkButton></li>
    <li>
        <asp:LinkButton ID="lnbtnNew" PostBackUrl="~/Combat/BaseItemNew.aspx" runat="server">添加分类</asp:LinkButton></li>
    <li>
        <asp:Label ID="lblPrompt" runat="server" ForeColor="Orange" Text=""></asp:Label>
    </li>
         </ul>
    
    <asp:GridView ID="gvItemList" Caption="<span>技能分类</span>" runat="server" 
        onrowdatabound="gvItemList_RowDataBound">
        <Columns>
              <asp:TemplateField HeaderText="序号">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="分类名称">                 
                  <ItemTemplate>
                      <%#Eval("ItemSkillName") %>
                  </ItemTemplate>
                  <HeaderStyle HorizontalAlign="Left" />
              </asp:TemplateField>
              <asp:TemplateField HeaderText="分类别名">                
                  <ItemTemplate>
                  <%#Eval("AlisSkillName")%>                      
                  </ItemTemplate>
                  <HeaderStyle HorizontalAlign="Left" />
              </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate> 
                    <asp:LinkButton ID="lnbtnModify" CommandArgument='<%# Eval("ID") %>' PostBackUrl='<%# "BaseItemNew.aspx?ID="+Eval("ID") %>' runat="server">修改</asp:LinkButton>
                    <asp:LinkButton ID="lnbtnDelete" CommandArgument='<%# Eval("ID") %>' 
                        OnClientClick="return confirm('确定要删除此记录吗？')" runat="server" 
                        oncommand="lnbtnDelete_Command">删除</asp:LinkButton>
                    <a href='BaseSkillNew.aspx?ID=<%# Eval("ID") %>'>添加技能</a>
                </ItemTemplate>
                <ItemStyle Width="17%" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    <uc1:ListPageContral ID="ListPageContral1"  OnPageSizeChange="ListPageContral1_PageSizeChange" PageSize="20" runat="server" />
    
</asp:Content>

